{extends file="../global.html"}
{block name=body}

 

<form class="layui-form" action="{url('/run/problem/add')}" method="post" enctype="multipart/form-data">

{if $error}
 <div class="layui-form-item">
     <div class="layui-input-block">
    <p style="color:red;font-size:30px">{$error}</p>
    </div>
    
  </div>
   
{else}
    
{/if}
  <div class="layui-form-item">
    <label class="layui-form-label">问题</label>
    <div class="layui-input-block">
      <input type="text" name="problem_name" required  lay-verify="required" placeholder="请输入问题" autocomplete="off" class="layui-input">
    </div>
  </div>
 <div class="layui-form-item">
    <label class="layui-form-label">答案</label>
    <div class="layui-input-block">
      <textarea name="problem_answer" placeholder="请输入答案" class="layui-textarea"></textarea>
    </div>
  </div>
   <div class="layui-form-item">
      <label class="layui-form-label">是否显示在首页</label>
      <div class="layui-input-block">
        <select name="problem_state" lay-verify="required">

          <option value=""></option>
          
         
          <option value="0">是</option>
        <option value="1">否</option>
       
          
        </select>
      </div>
    </div>
  
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
 
<script>
//Demo

</script>



{/block}